package com.cskaoyan.service;

import com.cskaoyan.bean.baseresultVO.BaseData;
import com.cskaoyan.bean.baseresultVO.BaseParam;
import com.cskaoyan.bean.domain.Role;
import com.cskaoyan.bean.roleBeans.PermissionResultVo;
import com.cskaoyan.bean.roleBeans.PermissionVo;

import java.util.ArrayList;
import java.util.List;


/**
 * @User: Yr
 * @Date: 2021/12/1 10:40
 * @Description: 系统管理-角色管理模块service层
 */

public interface RoleService {

    BaseData list(String name, BaseParam baseParam);

    int delete(Role role);

    Role create(Role role);

    int update(Role role);

    BaseData options();

    void getAuthData(List<PermissionVo> list);

    PermissionResultVo permissionsByGet(Integer roleId);

    int permissionsByPost(Integer roleId, ArrayList<String> permissions);
}
